return {
    "nvim-treesitter/nvim-treesitter",
    event = { "BufReadPre", "BufNewFile" },
    build = ":TSUpdate",
    dependencies = {
        "nvim-treesitter/nvim-treesitter-textobjects",
        "windwp/nvim-ts-autotag",
    },


    opts = function(_, opts)
        vim.treesitter.language.register("markdown", "mdx")
        vim.list_extend(opts.highlight, { enable = true })
        vim.list_extend(opts.indent, { enable = true })

 

        if type(opts.ensure_installed) == "table" then
            vim.list_extend(opts.ensure_installed, {
                "json",
                "markdown",
                "markdown_inline",
                "lua",
                "gitignore",
                "bibtex",
                "latex",
                -- you can add more here
            })
        end

    end,

}
